home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / util / pictcont.sit / PICT Control.rsrc / TEXT_303.txt < prev    next >
Text File  |  1988-11-15  |  1KB  |  5 lines

  1. One thing you should be aware of when changing the value of a PICT Control (i.e. the ID of the picture it displays) is the resource managerΓÇÖs resource search method.
  2.  
  3. A PICT Control attempts to find its pictures in the same resource file as the last picture it used by calling the Get1Resource() routine.  If it fails to find a PICT resource with the appropriate ID number in that resource file, it resorts to using the slower GetResource() call to search all resource files beginning with the current resource file and working back toward the System file itself (i.e. in the reverse of the order in which the files were opened; see IM I pp. 110-113 for more details).  If that fails, the control will draw an ΓÇÿXΓÇÖ across itself to indicate the error, but will continue to work normally in all other respects.
  4.  
  5. Be careful when using the UseResFile() routine to tell the resource manager what resource file to begin its search in.  If you attempt to tell a PICT Control to use a picture contained in a resource file that was opened AFTER the resource file specified in your last call to UseResFile() then the resource file containing the picture will NOT be in the search path and the picture will not be found.